import http from '@/common/interface'
export function doZxLogin(data){
	return http.request({
		url:'/login.do?action=hxyLogin_1',
		method: 'post',
		data
	})
}
//获取上下册
export function getInitStudyData(data){
	return http.request({
		url:'/hxy_1.do?action=getInitStudyData',
		method: 'get',
		data
	})
}
//根据科目上下册获取对应章节列表
export function getChapterList(data){
	return http.request({
		url:'/hxy_1.do?action=getStudyCptData',
		method: 'get',
		data
	})
}
//获取学习地图数据
export function getStudyMapData(data){
	return http.request({
		url:'/hxy_1.do?action=getStudyMapData',
		method: 'get',
		data
	})
}
//听 说 读 写det
export function getSourceDetail(data){
	return http.request({
		url:'/hxy_1.do?action=getSourceDetail',
		method: 'post',
		data
	})
}
//任务奖励list
export function getTaskRewardList(data){
	return http.request({
		url:'/hxy_1.do?action=getStudyTaskInfo',
		method: 'get',
		data
	})
}
//获取溯源路线图
export function getTracebackData(data){
	return http.request({
		url:'/hxy_1.do?action=getTracebackData',
		method: 'get',
		data
	})
}
//检测一个知识点一天只能完成一次
export function checkCurrentLore(data){
	return http.request({
		url:'/hxy_1.do?action=checkCurrentLore',
		method: 'get',
		data
	})
}
//获取题库
export function getQueData(data){
	return http.request({
		url:'/hxy_1.do?action=getQuestionData',
		method: 'get',
		data
	})
}
//将答题记录插入数据库
export function insertStudyInfo(data){
	return http.request({
		url:'/hxy_1.do?action=insertStudyInfo',
		method: 'post',
		data
	})
}
//最后提交动作
export function updateLogStatus(data){
	return http.request({
		url:'/hxy_1.do?action=updateLogStatus',
		method: 'post',
		data
	})
}
//获取五步学习内容
export function getStepQuestionData(data){
	return http.request({
		url:'/hxy_1.do?action=getStepQuestionData',
		method: 'get',
		data
	})
}
//获取自己的学科列表
export function getSelfSubject(data){
	return http.request({
		url:'/hxy_1.do?action=getSelfSubject',
		method: 'get',
		data
	})
}
//获取自己的学习记录
export function getSelfLearnRecList(data){
	return http.request({
		url:'/hxy_1.do?action=getSelfStudyLogList',
		method: 'get',
		data
	})
}
//获取学生学习记录(家长 老师)
export function getStudyLogList(data){
	return http.request({
		url:'/hxy_1.do?action=getSelfStudyLogList',
		method: 'get',
		data
	})
}
//获取指定的学习记录详情
export function getStudyLogResult(data){
	return http.request({
		url:'/hxy_1.do?action=getStudyLogResult',
		method: 'get',
		data
	})
}
//获取学科列表(家长 老师 班主任)
export function getSubjectList(data){
	return http.request({
		url:'/hxy_1.do?action=getSubjectList',
		method: 'get',
		data
	})
}
//获取指定班级下学生(老师用)
export function getStuList(data){
	return http.request({
		url:'/hxy_1.do?action=getStuList',
		method: 'get',
		data
	})
}
//查看答卷
export function getStudyLogDetail(data){
	return http.request({
		url:'/hxy_1.do?action=getStudyLogDetail',
		method: 'get',
		data
	})
}
//能力报告
export function getAbilityRep(data){
	return http.request({
		url:'/hxy_1.do?action=getNLData',
		method: 'get',
		data
	})
}
//获取用户个人信息
export function getUserInfo(data){
	return http.request({
		url:'/hxyTitle_1.do?action=getUserInfo',
		method: 'get',
		data
	})
}
//获取Bbslist
export function getBbsList(data){
	return http.request({
		url:'/hxyMotif_1.do?action=getMotifList',
		method: 'post',
		data
	})
}
//帖子顶和踩
export function supportMotify(data){
	return http.request({
		url:'/hxyMotif_1.do?action=supportMotif',
		method: 'get',
		data
	})
}
//帖子收藏/取消收藏
export function collectMotify(data){
	return http.request({
		url:'/hxyMotif_1.do?action=collectMotif',
		method: 'get',
		data
	})
}
//发布帖子
export function pubBbs(data){
	return http.request({
		url:'/hxyMotif_1.do?action=addMotifHx',
		method: 'get',
		data
	})
}
//帖子详情
export function getBbsDet(data){
	return http.request({
		url:'/hxyMotif_1.do?action=getMotifDetail',
		method: 'get',
		data
	})
}
//回复帖子
export function replyMotifHx(data){
	return http.request({
		url:'/hxyMotif_1.do?action=replyMotifHx',
		method: 'get',
		data
	})
}
//获取我的发帖
export function getMyMotify(data){
	return http.request({
		url:'/hxyMotif_1.do?action=getMyMotif',
		method: 'get',
		data
	})
}
//获取头衔
export function getSelfTitle(data){
	return http.request({
		url:'/hxyTitle_1.do?action=getSelfTitle',
		method: 'get',
		data
	})
}
//修改头衔
export function upLc(data){
	return http.request({
		url:'/hxyTitle_1.do?action=upLc',
		method: 'get',
		data
	})
}
//获取已绑定的家长列表
export function getMyParents(data){
	return http.request({
		url:'/hxy_1.do?action=getMyParentsList',
		method: 'get',
		data
	})
}
//获取已绑定子女
export function getMyChilds(data){
	return http.request({
		url:'/hxy_1.do?action=getMyChildList',
		method: 'get',
		data
	})
}
//获取我的班级列表
export function getMyClassList(data){
	return http.request({
		url:'/hxy_1.do?action=getMyClassList',
		method: 'get',
		data
	})
}
//2025-04-16新增
//切换年级
export function switchStuGradeData(data){
	return http.request({
		url:'/hxy_1.do?action=setStuGradeData',
		method:'post',
		data
	})
} 
//获取我的错题记录
export function getErrBookList(data){
	return http.request({
		url:'/loreError.do?action=getLoreErrorPageList',
		method: 'get',
		data
	})
}
//获取错题记录详情
export function getMyErrBookDet(data){
	return http.request({
		url:'/loreError.do?action=getLoreErrorDetail',
		method: 'get',
		data
	})
}
//重新订正当前错题
export function submitErrBook(data){
	return http.request({
		url:'/loreError.do?action=submitLoreError',
		method: 'post',
		data
	})
}
//获取错题对应的知识点统计
export function getLoreErrNumTj(data){
	return http.request({
		url:'/loreError.do?action=getLoreErrorTj',
		method: 'get',
		data
	})
}